package com.edu.system.domain;

import java.util.List;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.edu.common.annotation.Excel;
import com.edu.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 机器管理对象 t_terminal
 *
 * @author xxxx
 * @date 2023-12-21
 */

@Data
public class TTerminal extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 机器编号 */
    @Excel(name = "机器编号")
    private String code;

    /** 机器名称 */
    @Excel(name = "机器名称")
    private String name;

    /** 班牌/食堂 */
    @Excel(name = "班牌/食堂")
    private String type;

    /** 绑定位置id */
    @Excel(name = "绑定位置id")
    private Long locationId;

    /** 绑定位置 */
    @Excel(name = "绑定位置")
    private String location;

    /** 状态 */
    @Excel(name = "状态")
    private Integer status;

    @Excel(name = "更新时间")
    private Date updateTime;

    /** 开机关机时间 */
    private String fromTo;

    private List<Long> locationIds;


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("code", getCode())
            .append("name", getName())
            .append("type", getType())
            .append("locationId", getLocationId())
            .append("location", getLocation())
            .append("fromTo", getFromTo())
            .append("status", getStatus())
            .toString();
    }
}
